<?php
class BlogModel extends Model{

    public $table='blog';
    public function __init(){
//        echo 34;
    }
    public function __before_insert(&$data){
       $data['click']=100;
    }
    public function __after_select(&$data){
        foreach($data as $id=>$d){
            $data[$id]['click']=$d['click']+200;
        }
    }
}